package br.com.projetoejc.controller;

import java.util.List;

import br.com.projetoejc.dao.EmailDAO;
import br.com.projetoejc.model.Email;

public class EmailController {
	
	private EmailDAO emailDAO;

	public EmailController() {
		this.emailDAO = new EmailDAO();
	
	}
	
	public List<Email> listarTodos() {
		return this.emailDAO.listarTodos();
	}
	
	public Email buscarId(long pk) {
		return this.emailDAO.buscarId(pk);
	}
	
	public void inserir(Email email) {
		this.emailDAO.inserir(email);
	}
	
	public void alterar(Email email) {
		this.emailDAO.alterar(email);
	}
	
	public void remover(Email email) {
		this.emailDAO.remover(email);
	}

}
